<extend name="Public:index" />
<block name="left">
	<ul >
		<li><a href="{:U('admin/Info/sinfo')}">授权信息</a></li>
        <li><a href="{:U('admin/Info/lift_log',array('tp'=>1))}">升级授权日志</a></li>
        <li><a href="{:U('admin/Info/lift_log',array('tp'=>2))}">降级授权日志</a></li>
	</ul>	
</block>
<block name="right">
	<div class="right_center" style=" width:200%">
		<form method="post" action="{:U('admin/Info/lift_log')}">
			<input type="text" name="wechat" placeholder="请输入查询的微信号" value="{$wechat}" />&nbsp;&nbsp;
            <input type="text" name="phone" placeholder="请输入查询的手机号"  value="{$phone}"/>&nbsp;&nbsp;
            <input type="text" name="address" placeholder="请输入查询的收货地址" value="{$address}" />&nbsp;&nbsp;
            <input type="hidden" name="tp" placeholder="类型" value="{$tp}" />
			<input type="submit" class="search" value="搜索" />
            <a href="{:U('Info/sinfo')}"><input type="button" class="search" value="刷新" /></a>
		</form>
        
	</div>
	<table class="table table-striped table-hover">
		<thead>
			<th>姓名</th>
            
			<th>授权微信</th>
			<th>授权手机</th>
            <th>授权级别</th>
			<th>授权码</th>
			<th>授权到期时间</th>
            <th>收货地址</th>
			<th>状态</th>
            <th>旧授权（关系）</th>
            <th>更改时间</th>
		</thead>
		<tbody>
			<foreach name="info1.list" item="info">
				<tr>
					<td>{$info.name}</td>
					<td>{$info.wechat}</td>
					<td>{$info.phone}</td>
                    <td><div class="change_shouquan" style=" display:inline;">{$info.level}</div></td>
					<td>{$info.shouquan}</td>
					<td>{$info.endtime}</td>
                    <td>{$info.address}</td>
					<td><if condition="$info['status'] eq 1 ">升级<else/>降级</if>
                    </td>
                    <td>{$info.org_shouquan}</td>
                    <td>{$info.ctime}</td>
				</tr>
			</foreach>
		</tbody>
		<tfoot>
			<th colspan="5">{$info1.page}</th>
		</tfoot>
	</table>
</block>